package com.linx.parking_lot.domain.parking_lot_info;

import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 停车场-信息业务对象 parking_lot_info
 *
 * @author linx
 * @date 2025-02-17
 */
@Data
@AutoMapper(target = ParkingLotInfo.class, reverseConvertGenerate = false)
public class ParkingLotInfoBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long parkingLotId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 停车场名称
     */
    @NotBlank(message = "停车场名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parkingLotName;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPerson;

    /**
     * 联系人电话
     */
    @NotBlank(message = "联系人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPersonPhone;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 详细地址
     */
    @NotBlank(message = "详细地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String addressDetail;

    /**
     * 车位数
     */
    @NotNull(message = "车位数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parkingSpaceNum;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String latitude;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String longitude;

    /**
     * 营业时间 开始
     */
    @NotNull(message = "营业时间 开始不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date businessHoursStart;

    /**
     * 营业时间结束
     */
    @NotNull(message = "营业时间结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date businessHoursEnd;

    /**
     * 是否手动开闸 1 是  0 否
     */
    @NotBlank(message = "是否手动开闸 1 是  0 否不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openGate;

    /**
     * 上级停车场
     */
    @NotNull(message = "上级停车场不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 起步价（单位：元）
     */
    @NotNull(message = "起步价（单位：元）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long startingPrice;

    /**
     * 起步价时长（单位：分钟）
     */
    @NotNull(message = "起步价时长（单位：分钟）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long startingPriceDuration;

    /**
     * 每小时加收（单位：元）
     */
    @NotNull(message = "每小时加收（单位：元）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long hourPrice;

    /**
     * 单日收费上限（单位：元）
     */
    @NotNull(message = "单日收费上限（单位：元）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long dayUpperLimitPrice;


}
